/*
 * Info.h
 *
 *  Created on: 17/12/2011
 *      Author: george
 */


#ifndef INFO_H_
#define INFO_H_

#include <sys/time.h>
#include <string>
#include <sstream>
#include <iostream>

class Info {
public:

	virtual ~Info();

	unsigned int nmHosts;
	unsigned int nmSessionManagers;

	unsigned int nmCapturedPackets;
	unsigned int nmDiscartedPackets;

	unsigned int nmDicartedTcpPackets;

	unsigned int nmUdpSessions;
	unsigned int nmTcpSessions;
	unsigned int nmIcmpErrorSessions;
	unsigned int nmIcmpSessions;

	std::stringstream executionTime;
	static Info       *getInstance();
	std::string       getExecutionTime();

private:
	Info();
	static Info *instance;

	timeval inicioDaExecucao;
	timeval fimDaExecucao;

};

#endif /* INFO_H_ */
